<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

	public function index(){
		// Write to $title
		$this->template->write('title', 'Home');

		// Write to $header
		$this->template->write_view('header', 'layout/header');

		// Write to $content
		$this->template->write_view('content', 'home/index');

      	// Write to $menubar
      	$this->data = array('menu_value' => 'home');
		$this->template->write_view('menubar', 'layout/menubar', $this->data, TRUE);

		// Write to $footer
		$this->template->write_view('footer', 'layout/footer');
      
      	// Render the template
      	$this->template->render();
	}
}